package cn.wolfcode.service;

import cn.wolfcode.domain.Consumption;
import cn.wolfcode.qo.ConsumptionQueryObject;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IConsumptionService {

    void insert(Consumption consumption) ;

    void delete(Long id) ;

    void update(Consumption consumption) ;

    Consumption selectById(Long id) ;

    List<Consumption> selectAll();

    PageInfo<Consumption> query(ConsumptionQueryObject qo);

    void save(Consumption consumption);

    Long saveOrUpdate(Long id);
}
